defaultApplyAsset

abstract suspend fun defaultApplyAsset(asset: Asset): DesignBlock?

This is the default implementation of applying asset to the active scene. This means a design block is instantiated and configured according to the Asset.meta properties.

Return

the newly created block or null if no new block is created.

Parameters

asset

the asset to be applied to the active scene. Normally it's a single result of a findAssets query.


abstract suspend fun defaultApplyAsset(asset: Asset, block: DesignBlock)

This is the default implementation of applying asset object to an existing block. This means it replaces the block content with asset content, if compatible.

Parameters

asset

the asset that will be applied to the existing block. Normally it's a single result of a findAssets query.

block

the block that will be modified by the asset.